﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class PlatForm_ExpertNewsDetail : PX.MyPage
{
	protected void Page_Load(object sender, EventArgs e)
	{
		if (!IsPostBack)
		{
			Show();
		}
	}

	private void Show()
	{
		int nExpertNewsID;
		PX.File.FileComponent clsFileComp = new PX.File.FileComponent();
		PX.File.File clsFile = new PX.File.File();

		clsFileComp.page = Page;

		nExpertNewsID = Convert.ToInt32(Request["ExpertNewsID"]);

		clsFile = (PX.File.File) clsFileComp.GetOneByID(nExpertNewsID);

		idContent.Attributes.Add("src", "../ShowImageFile.aspx?FileID=" + clsFile.FileID.ToString());
		idContent.Attributes.Add("onload", "iFrameHeight('" + idContent.ClientID.ToString() + "')");
	}
}